/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <cstdio>
#include <algorithm>
using namespace std;

int main_1011()
{
    double maxProfit=1.0;
    double game[3];
    char mp[4]= {'W','T','L'};
    for (int i=0; i<3; ++i)
    {
        scanf("%lf%lf%lf",&game[0],&game[1],&game[2]);
        auto ele=max_element(game,game+3);
        maxProfit*=*ele;
        printf("%c ",mp[distance(game,ele)]);
    }
    printf("%.2lf",(maxProfit*0.65-1)*2);
    return 0;
}
